package com.fyk.mapper;

import com.fyk.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author qazws
 * @Date 2022/8/19 17:27
 * @Version 1.0
 */

@Repository
public interface UserMapper {
    int insertUser(User user);

    List<User> selectAll(Integer deleted);

    User selectUserByUsername(String username);

    int updateUser(User user);

    User selectUserByUserId(Integer userId);

    List<User> selectUserByUserIdOrUsername(User user);

    int deleteUser(Integer userId);

    int deletedAllUser(List<String> lists);

    int returnAllUser(List<String> lists);
}
